package com.lln.cjcx.pojo;
import com.lln.cjcx.pojo.grade.TermGrade;
import com.lln.cjcx.util.okhttp.CookieJarImpl;
import org.jetbrains.annotations.NotNull;

import java.util.concurrent.TimeUnit;

public final class MyOkHttpClient extends yfdc.JavaBean implements java.io.Serializable {
	public MyOkHttpClient() {
		super();
		this.student = new Student();
	}
	public java.util.List<TermGrade> grades;
	private static final long serialVersionUID = 0L;
	public int port = 7872;
	@NotNull  public final okhttp3.OkHttpClient client = (new okhttp3.OkHttpClient.Builder())
			.cookieJar(CookieJarImpl.getInstance())
			.connectTimeout(50L, TimeUnit.SECONDS)
			.callTimeout(50L,TimeUnit.SECONDS)
			.build();
	public boolean isLogin = false;
	public Student student;
	public final int getPort() {
		return this.port;
	}
	public final void setPort(int _port) {
		this.port = _port;
	}
	public final void changePort() {
		this.port = (this.port == 7872) ? 7873 : 7872;
	}
	public final void setLogin(boolean login) {
		this.isLogin = login;
	}
	public final boolean isLogin() {
		return this.isLogin;
	}
}
